//
//  LeTVRecord.m
//  Courses
//
//  Created by YiXuePxh on 15/5/5.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "LeTVRecord.h"
#import "Request.h"
#import "GetNickName.h"
@implementation LeTVRecord
+(void)recordDataByVideoSourse:(NSString* ) videoSourse
                        UserId:(NSString* ) userId
                    CourseType:(NSString* ) courseType
                      CourseId:(NSString* ) courseId
                     LesssonId:(NSString* ) lesssonId
                       VideoId:(NSString* ) videoid
                    YxName:(NSString* ) yxName
                {
                    Request* request = [Request requestWithName:@"play_course"];
                    request.body[@"ykName"] = [[NSUserDefaults standardUserDefaults]objectForKey:@"nickName"];
                    request.body[@"sourceId"] = @"2";
                    request.body[@"deviceNo"] = @"IOS12345";
                    request.body[@"videoSource"] = videoSourse;
                    request.body[@"userId"] = userId;
                    request.body[@"courseType"] = courseType;
                    request.body[@"courseId"] = courseId;
                    request.body[@"lesssonId"] = lesssonId;
                    request.body[@"videoId"] = videoid;
                    request.body[@"yxName"] = yxName;
                    Response* response = [request response];
                    if (!response.result) {
                        NSLog(@"返回数据错误");
                    }
}
@end
